package com.suixun.service;

import java.util.List;

import org.dom4j.DocumentException;

import com.suixun.entity.RegionInfo;
import com.suixun.entity.School;
import com.suixun.entity.form.ParamForm;
import com.suixun.entity.page.PageModel;
import com.suixun.vo.SchoolDiscountVO;
import com.suixun.vo.SchoolVO;

public interface SchoolService {
	
	//查询所有学校
	List<School> querySchoollist(ParamForm paramForm);
	//分页查询学校列表
	PageModel<SchoolVO> querySchoollistPage(ParamForm paramForm) throws Exception;
	
	/**
	 * 分页查询学校列表
	 * @param paramForm 查询参数
	 * @param type 学校类型。1：和教育
	 * @return
	 * @throws Exception
	 */
    PageModel<SchoolVO> querySchoollistPage(ParamForm paramForm, Integer type) throws Exception;
	
	//查询行政区域
	List<RegionInfo> queryRegion(RegionInfo paramForm) throws DocumentException ;
	//新增学校
	String addSchool(SchoolVO schoolinfo,long operatorid, String schooltype);
	//修改学校
	String modifySchool(SchoolVO schoolinfo, long operatorid, String schooltype);
	//删除学校
	int delSchool(int id);
	
	SchoolDiscountVO querySchoolDiscount(Integer schoolid);
	
	int updateSchoolDiscount(SchoolVO school);
	
	School querySchoolByName(ParamForm paramForm);
	
	int querySchoolStudentCounts(ParamForm paramForm);
	
	School querySchoolByID(ParamForm paramForm);
	//查询指定学校的省市区
	List<RegionInfo> querySchoolRegion(ParamForm paramForm);
	
}
